<template>
  <div>
    <h4>疼痛评定</h4>
    <el-row type="flex" justify="space-between">
      <el-col >
        <div>
          <span>上肢： </span>
          <el-select v-model="pgForm.ttpd_sz" placeholder="请选择" style="width: 50%;">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </div>
      </el-col>
      <el-col >
        <div>
          <span>头颈及躯干： </span>
          <el-select v-model="pgForm.ttpd_tjjqg" placeholder="请选择" style="width: 50%;">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </div>
      </el-col>
      <el-col >
        <div>
          <span>下肢： </span>
          <el-select v-model="pgForm.ttpd_xz" placeholder="请选择" style="width: 50%;">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
          </el-select>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "pain_assess",
  title: "疼痛评定",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data(){
    return{
      pgForm: {
        ttpd_sz:'',
        ttpd_tjjqg:'',
        ttpd_xz:''
      },
      options:[{
        value:'0',
        label:'0'
      },{
        value:'1',
        label:'1'
      },{
        value:'2',
        label:'2'
      },{
        value:'3',
        label:'3'
      },{
        value:'4',
        label:'4'
      },{
        value:'5',
        label:'5'
      },{
        value:'6',
        label:'6'
      },{
        value:'7',
        label:'7'
      },{
        value:'8',
        label:'8'
      },{
        value:'9',
        label:'9'
      },{
        value:'10',
        label:'10'
      }]
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
}
</style>
